package org.jeecg.common.system.api;

import org.jeecg.common.constant.ServiceNameConstants;
import org.jeecg.common.system.api.fallback.SyncAPIFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author : 国子软件
 * @date : 2022/9/5 19:26
 * @Description:
 */
@Component
@FeignClient(contextId = "syncRemoteApi", path = "sync/data", value = ServiceNameConstants.JEECG_SYNC, fallbackFactory = SyncAPIFallback.class)
public interface SyncAPI {

    @PostMapping(value = "/batchSyncOrgDept")
    void batchSyncOrgDept(@RequestParam("username") String username, @RequestParam("ids") String ids, @RequestParam("appIds") String appIds);
}
